package com.AsuncDemo;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @Auther: zch
 * @Date: 2019/1/19 16:27
 * @Description:
 */
@Service
public class AsyncServiceImpl implements AsyncService {
    @Override
    @Async //声明使用异步调用
    public void geηerateReport() {
        //打印异步线程名称
        System.out.println("报表线程名称："+Thread.currentThread().getName());
    }
}
